/*
 * Copyright (c) Scrap Material Junior Brother, Xin. 2023-2023. All rights reserved.
 */

package link;

/**
 * 节点
 *
 * @author xin
 * @since 2023-05-19
 */
public class Node {
    int data;
    Node next;

    Node() {}

    Node(int data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "{" + data + "} ==> " + next;
    }
}
